package god;

import java.util.Scanner;

public class J08SungJuk {
	public static void main(String[] args) {
		
		String name[] = new String[4];
		char grd[] = new char[4];
		int kor[] = new int[4];
		int eng[] = new int[4];
		int mat[] = new int[4];
		int tot[] = new int[4];
		double avg[] = new double[4];
		Scanner sc = new Scanner(System.in);
		String result = "";
		
		for ( int i = 0;  i < 3; ++i ) {
			System.out.println("이름을 입력해주세요.");
			name[i] = sc.next();
			System.out.println("국어, 영어, 수학 점수를 입력해주세요.");
			kor[i] = sc.nextInt();
			eng[i] = sc.nextInt();
			mat[i] = sc.nextInt();
			tot[i] = kor[i] + eng[i] + mat[i];
			avg[i] = tot[i] / 3;
			
			switch((int)avg[i]/10) {
				case 10 :
				case 9 : grd[i] = '수'; break;
				case 8 : grd[i] = '우'; break;
				case 7 : grd[i] = '미'; break;
				case 6 : grd[i] = '양'; break;
				default : grd[i] = '가';
			}
			
			result += "이름 : " + name[i] + '\t' + "국어 : " + kor[i] + '\t' + "영어 : " + eng[i] + '\t' + "수학 : "
							+ mat[i] + '\t' + "총점 : " + tot[i] + '\t' + "평균 : " + avg[i] + '\t' + "학점 : " + grd[i] + '\n';
		}
		System.out.println(result);
		sc.close();
	}

}
